{include file="public/header" /}



<div class="page">

    <form id="answer_form" action="{:url('answer/add')}" method="post" name="articleClassForm">
        <table class="ds-default-table">
            <tbody>
            <tr class="noborder">
                <td colspan="2" class="required">
                    <label class="validation" for="ac_name">内容:</label>
                </td>
            </tr>
            <tr class="noborder">
                <td class="vatop rowform">
                    <input type="text" value="{$answer.content|default=''}" name="content" id="ac_name" class="txt">
                    <input type="hidden" value="{$answer.id|default=''}" name="id" class="txt">
                </td>
            </tr>
            </tbody>
            <tfoot>
            <tr class="tfoot">
                <td colspan="15" >
                    <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
                </td>
            </tr>
            </tfoot>
        </table>
    </form>
</div>
<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
<script type="text/javascript">
    function submit_delete(ids_str){
        _uri = ADMINSITEURL+"/Articleclass/question_del.html?ac_id=" + ids_str;
        dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
    }

    /*$('.btn').click(function () {
        var data = {};
        var value = $('#answer_form').serializeArray();
        $.each(value, function (index, item) {
            data[item.name] = item.value;
        })
        console.log(data)
        if(data.content===''){
            layer.msg('请输入答案内容')
        }
    })*/

</script>
